package day07;

public class HomeworkprimeNumber2 {
    public static void main(String[] args) {
        for (int n=2;n<=100;n++){
            boolean f=true;
            for(int i=2;i<=n/2;i++){
                if(n%i ==0){
                    f=false;
                }
            }
            if(f){
                System.out.print(n+"该数是素数\t");
            }
        }
    }
}
